package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Menu;
import java.util.List;
import java.util.Map;
public interface MenuService {
    /**
     * @Author: 涵哥
     * @Date: 19:33 2021/1/19
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 菜单-分页展示
     */
    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * @Author: 涵哥
     * @Date: 20:22 2021/1/19
     * @Parms [menu]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 菜单-新增
     */
    void add(Menu menu);


    /**
     * @Author: 涵哥
     * @Date: 20:25 2021/1/19
     * @Parms [id]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 菜单-删除
     */
    void delete(Integer id);


    /**
     * @Author: 涵哥
     * @Date: 20:37 2021/1/19
     * @Parms [id]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 菜单-编辑
     */
    void edit(Menu menu);


    /**
     * @Author: 涵哥
     * @Date: 21:09 2021/1/19
     * @Parms [id]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 据id查询-编辑回显数据
     */
    Menu findById(Integer id);

    List<Map<String,Object>> showMenu();

    List<Menu> showMenuTwo(String username);

}
